const obj={
    name:'test'
}
const obj1={
    age:'18'
}

console.log(Object.assign({},obj,obj1))